package org.jetnuke.servlets.utilities;

import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletContext;

import org.apache.log4j.Logger;

public class GetStyles {
	private final static Logger s_log = Logger.getLogger(GetStyles.class);
	private GetStyles() {
	};

	public static List getStyles(ServletContext sc) {
		List styleList = null;
		
		try {
			styleList=GetResources.getDirectories(sc,"/WEB-INF/style/");
		} catch (Throwable e) {
			s_log.error(e);
			styleList=new ArrayList();
			styleList.add("NukeNews");
		}
		
		return styleList;
	}
}
